package day2;

import java.util.HashSet;
import java.util.Set;

/**
 * @author oldliu
 * @since 1.0
 */
public class Set2 {
    public static void main(String[] args) {
        Set set=new HashSet();
        set.add(new People("老吴","男",23));
        set.add(new People("小马","女",23));
        set.add(new People("老张","男",22));
        set.add(new People("小宋","男",22));
        set.add(new People("老吴","女",54));
        System.out.println(set.size());
        for(Object o:set)
            System.out.println(o);
    }
}
